import request from '@/utils/request.js'
import {ref} from 'vue'

/**
 * 获取商品列表（干洗店）
 * @param {Object} params  { shopId, status, page, limit }
 * @returns {Promise} 商品数组
 */
export function fetchFenxiao(data) {
  return request({
    method: 'POST',
    url: '/distributeList',       // 相对路径（baseURL 已配置）
    data                            // GET 用 params
  })
}
export const orderfenxiao = [
	{
		id: 1,
		code: '20250625001',
		paymoney: 25,
		timed: '2025-06-26 8:30',
		user:'小美',
		number:'1'
	},
	{
		id: 2,
		code: '20250625002',
		paymoney: 25,
		timed: '2025-06-26 8:30',
		user:'小明',
		number:'1'
	},
	{
		id: 3,
		code: '20250625003',
		paymoney: 25,
		timed: '2025-06-26 8:30',
		user:'小亮',
		number:'1'
	},
	{
		id: 4,
		code: '20250625004',
		paymoney: 55,
		timed: '2025-06-26 8:30',
		user:'小强',
		number:'1.6'
	},
	{
		id: 5,
		code: '20250625005',
		paymoney: 15,
		timed: '2025-06-26 8:30',
		user:'小美',
		number:'0.3'
	},
	{
		id: 6,
		code: '20250625006',
		paymoney: 50,
		timed: '2025-06-26 8:30',
		user:'小美',
		number:'2'
	},
]